package com.igeekhome.ribbon.custom;

import com.netflix.loadbalancer.IRule;
import com.netflix.loadbalancer.RandomRule;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author yadonghe
 * @date 2020-02-24 11:38
 */
@Configuration
public class RandomRuleConfigration {

    @Bean
    public IRule randomRule() {
        return new RandomRule();
    }
}
